package com.example.crm.service.impl;

import com.example.crm.dao.IUserDAO;
import com.example.crm.dao.impl.UserDAOImpl;
import com.example.crm.service.IUserService;

public class UserServiceImpl implements IUserService{

    @Override
    public boolean login(String username, String password) {

        //调用DAO层查询数据
        //return false;
        IUserDAO userDAO =new UserDAOImpl();
        boolean result=userDAO.findByUsernamePassword(username,password);
        return result;
    }
}
